home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-06-22 | 537 b | 38 lines | [TEXT/MPS ] |
- Program TestProg;
-
- Uses Memtypes, QuickDraw, OSIntf;
-
- procedure HaveGlobals; FORWARD;
- {so Caller knows about the procedure}
-
- procedure Caller;
- begin
- HaveGlobals;
- end;
-
- procedure HaveGlobals;
- var
- Global1:Integer;
- Global2:str255;
-
- procedure First;
- begin
- Global1:=Length(Global2);
- end; {First}
-
- procedure Second;
- var Count:Integer;
- begin
- For Count:=1 to Global1 do Sysbeep(2);
- end; {Second}
-
- begin {HaveGlobals}
- Global2:='Hello there';
- First;
- Second;
- end; {HaveGlobals}
-
- Begin {Main Block}
- Caller;
- End. {program}
-